package com.ethink.order.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ethink.order.api.info.TocSaleImportLogDetailInfo;
import com.ethink.order.api.request.CheckShopOrderNoIfExistRequest;
import com.ethink.order.api.request.TocSaleImportLogDetailQueryRequest;
import com.ethink.order.common.entity.TocSaleImportLogDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * TOC销售单导入日志明细 Mapper接口
 *
 * @author default
 * @date 2022-11-22
 */
@Mapper
public interface TocSaleImportLogDetailMapper extends BaseMapper<TocSaleImportLogDetail> {


    List<TocSaleImportLogDetailInfo> selectListByLogId(Long logId);

    List<TocSaleImportLogDetailInfo> queryDetailByShopOrderNoAndMateSku(@Param("requests") List<TocSaleImportLogDetailQueryRequest> requests);

    List<TocSaleImportLogDetailInfo> queryDetailByShopOrderNo(@Param("list") List<String> list);

    List<TocSaleImportLogDetailInfo> queryDetailByIds(@Param("list") List<Long> ids);

    List<String> checkShopOrderNoIfExist(@Param("request") CheckShopOrderNoIfExistRequest checkShopOrderNoIfExistRequest);

}